/** 
 * @Description: 文件描述
 * @Author: 程前
 * @Date: 2024-12-17 16:59:42
 * @LastEditors: 程前
 * @LastEditTime: 2024-12-25 16:39:41
 */
import { defineStore } from "pinia";
import { ICesiumEditStore, PlottingEditData,SignEditData } from "@/types/pinia/cesium-edit"
import { imagePlottingConfig, vectorPlottingConfig, modelConfig,imageSignConfig,vectorSignConfig } from "@/config/cesium";


export const useCesiumEditStore = defineStore("cesium-edit-store", {

    state: (): ICesiumEditStore => ({
        plotting: {
            type: "",
            src: "",
            imageConfig: imagePlottingConfig,
            vectorConfig: vectorPlottingConfig
        },
        sign: {
            src: "",
            imageConfig: imageSignConfig,
        },
        model: {
            src: "",
            coverSrc: "",
            config: modelConfig
        }

    }),
    actions: {
        /**
         * 获取当前Plotting编辑数据
         */
        getPlotting(): PlottingEditData {
            return this.plotting
        },
        getSign(): SignEditData {
            return this.sign
        }
    }
})